//
//  SEGActivityDetailBaseViewController.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/8/1.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGActivityDetailRuleCell.h"
#import "SEGActivityDetailTitleCell.h"
#import "SEGActivityDetailNoCommentCell.h"
#import "SEGActivityDetailCommentCell.h"
#import "SEGActivityDetailToolBarView.h"
#import "SEGCommentInputView.h"
// Model
#import <SEGModel/SEGActivityDetailModel.h>
// ViewModel
#import <SEGViewModel/SEGActivityDetailViewModel.h>
// Third
#import <ReactiveObjC/ReactiveObjC.h>

// 活动详情各个Cell显示类型
typedef enum : NSUInteger {
    SEGActivityDetailCellDispalyType_Rule,      // 头部&活动规则
    SEGActivityDetailCellDispalyType_TencentAD,     // 腾讯广告
    SEGActivityDetailCellDispalyType_Comment,       // 邻居说（评论）
    SEGActivityDetailCellDispalyType_JoinedUser,    // 活动参与人数
    SEGActivityDetailCellDispalyType_OfflineSignUp, // 线下活动报名
    SEGActivityDetailCellDispalyType_Lottery,       // 大转盘或者砸金蛋抽奖界面
    SEGActivityDetailCellDispalyType_LotteryTrends, // 中奖动态
    SEGActivityDetailCellDispalyType_LotteryList    // 中奖列表
} SEGActivityDetailCellDispalyType;

@interface SEGActivityDetailBaseViewController : UIViewController

/// 活动ID
@property (nonatomic, strong) NSString *actId;
/// 各个cell显示类型的数组（子类需要赋值）
@property (nonatomic, strong) NSArray<NSNumber*> *displayTypeArray;
/// 详情模型
@property (nonatomic, strong) SEGActivityDetailModel *detailModel;
/// ViewModel
@property (nonatomic, strong) SEGActivityDetailViewModel *detailViewModel;
/// 底部工具栏
@property (nonatomic, strong) SEGActivityDetailToolBarView* toolBarView;
/// 输入界面及背景视图
@property (nonatomic, strong) SEGCommentInputView *commentInputView;
/// 主视图
@property (nonatomic, strong) UITableView *tableView;

- (void)headerRereshing;

/// 刷新评论
/// @param isRefresh 是否是刷新（否：加载更多）
- (void)requestCommentList:(BOOL)isRefresh;

/// 显示没有认证的时候显示提示框
- (void)showNothAlterView;

/// 跳转认证页面
- (void)goToAuthViewController;

@end
